package controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.RequestService;

public class Request2Controller implements Controller{

	@Override
	public AttributeAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
	//1. 요청 파라미터 조회(검증)
	//2. 업무로직 처리 - Model호출
		RequestService service = RequestService.getInstance();
		service.handleRequest2();
	//3. 응답
		//return new AttributeAndView(true,"/FrontControllerPattern/view/response/response2.jsp");
		//디스패치는 절대경로. 리다이렉트방식은 프로젝트 루트 경로에서 시작.
		return new AttributeAndView(true/*redirect*/,"/FrontControllerPattern/controller?command=link&href=response/response2.jsp");
		
	}

}
